﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Web;
using EntityDA; //khai báo sử dụng thư viện

namespace BussinessObject
{
    public class SachController
    {
        public List<SachData> GetAllSach(int MaLoai)
        {
            SachDB db = new SachDB();
            return db.GetAllSach(MaLoai);
        }
        public SachData GetOneSach(int MaSach)
        {
            SachDB db = new SachDB();
            return db.GetOneSach(MaSach);
        }
        public bool ThemSach(SachData data)
        {
            SachDB db = new SachDB();
            return db.ThemSach(data);
        }

    }
}